package cn.cheneyjoo.feigninterface;

import cn.cheneyjoo.Model.Product;
import cn.cheneyjoo.feigninterface.feignconfig.FeignSupportConfig;
import cn.cheneyjoo.feigninterface.feignfallback.GoodsFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "cheneyjoo-service-goods",fallback = GoodsFallBack.class,configuration = FeignSupportConfig.class)
public interface GoodsFeignInterface {
    @RequestMapping("/goods/{id}")
    Product getOneProduct(@PathVariable int id);
}
